import { createApp } from "vue";
import SvgIcon from "@/icons";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// 导入样式
import "@/assets/styles/reset.css";
import "@/assets/styles/border.css";
// 引入element ui plus
import "element-plus/dist/index.css";
// createApp(App).use(store).use(router).use(ElementPlus).mount('#app')
// 国际化中文
import zhCn from "element-plus/es/locale/lang/zh-cn";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(ElementPlus, {
  locale: zhCn,
});
SvgIcon(app);
app.use(store);
app.use(router);
app.use(ElementPlus);
app.mount("#app");
